app.service('SchoolListService',function ($http) {

  this.findAll=function (pageNum,pageSize) {
     return  $http.get('../tbschool/plist.do?pageNum='+pageNum+'&pageSize='+pageSize);
  };
  this.gg=function (id) {
      return $http.get('../tbschool/findbyid.do?id='+id);
  };
  this.updatestatus =function (entity) {
      return  $http.post('../tbschool/xiugaistatus.do',entity)
  }
  this.add=function (image_entity) {
      return $http.post('/tbschool/add.do',image_entity)
  }


    this.update=function (image_entity) {
        return $http.post('/tbschool/update.do',image_entity)
    }


    this.findOne=function (id) {
        return $http.get('/tbschool/findOne.do?id='+id)
    }



})